package com.wicket.okrcomponent.integration.dto;

import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc AccountCapitalSourceDto
 * @使用场景
 */
@Data
public class AccountCapitalSourceDto extends BaseDto implements Serializable {

  /**
   * 资金来源ID
   */
  @ApiModelProperty("资金来源ID")
  private String capitalSourceId;

  /**
   * 资金来源名称
   */
  @ApiModelProperty("资金来源名称")
  private String capitalSourceName;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    AccountCapitalSourceDto that = (AccountCapitalSourceDto) o;
    return (
      capitalSourceId == that.capitalSourceId &&
      capitalSourceName == that.capitalSourceName
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(super.hashCode(), capitalSourceId, capitalSourceName);
  }

}
